<?php

namespace App\Models\Order;

use App\Models\BaseModel;

/**
 * App\Models\Order\Order
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property string $out_trade_no 订单号
 * @property int $order_snapshot_id 快照ID
 * @property string $product_title 产品名称
 * @property string $total_price 订单金额
 * @property string $total_amount 实收金额
 * @property int $pay_status 支付状态 0=未支付 1=已支付
 * @property int $refund_status 退款状态 未退款=0 退款=1
 * @property int $deleted 管理员删除 0=未删除,1=删除
 * @property int $user_deleted 用户删除 0未删除 , 1=已删除
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection|\Illuminate\Notifications\DatabaseNotification[] $notifications
 * @property-read int|null $notifications_count
 * @method static \Illuminate\Database\Eloquent\Builder|Order newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Order newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Order query()
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereDeleted($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereOrderSnapshotId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereOutTradeNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order wherePayStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereProductTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereRefundStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereTotalAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereTotalPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereUserDeleted($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Order whereUserId($value)
 * @mixin \Eloquent
 */
class Order extends BaseModel {

	protected $table = 'order';
	protected $primaryKey = 'id';
	public $timestamps = true;
	protected $fillable = [
		'user_id',
		'out_trade_no',
		'order_snapshot_id',
		'product_title',
		'total_price',
		'total_amount',
		'pay_status',
		'deleted',
		'user_deleted',
	];

}
